//
//  DataHandle.h
//  FNer
//
//  Created by 王展 on 15/9/29.
//  Copyright (c) 2015年 wangzhan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Channels.h"
#import "Music.h"
#import "Video.h"
#import "MovieModel.h"
@interface DataHandle : NSObject

+(instancetype)shareDataHandle;
-(void)huanCun:(NSMutableDictionary *)dic;
-(void)communityHuanCun:(NSMutableDictionary *)dic;
-(void)lunboHuanCun:(NSMutableDictionary *)dic;
-(void)CommunityDetailHuanCun:(NSMutableDictionary *)dic;
-(void)OtherHuancun:(NSMutableDictionary *)dic;
-(void)informationHuancun:(NSMutableDictionary *)dic;

-(void)openDB;//打开数据库
-(void)createChannelTable;//创建channel表
-(void)insertFilmTable:(Channels *)channel;//插入表
-(NSMutableDictionary *)selectChannel;//查询表
-(void)deleteChannel:(NSString *)channelName;//删除订阅

-(void)createMusicTable;
-(void)insertMusicTable:(Music *)music;
-(void)deleteMusic:(NSString *)musicName;
-(NSMutableDictionary *)selectMusic;

-(void)createVideoTable;
-(void)insertVideoTable:(Video *)avideo;
-(void)deleteVideo:(NSString *)videoName;
-(NSMutableDictionary *)selectVieo;

@property(nonatomic,copy)NSString * rootPath;
@property(nonatomic,copy)NSString *communityPath;

-(void)videoHuanCun:(NSMutableDictionary *)dic;

-(void)createMovieTable;
-(void)insertMovieTable:(MovieModel *)movie;
-(void)deleteMovie:(NSString *)movieName;
-(NSMutableArray *)selectMovie;


@end
